/*
 * Rhy Operating System Core Lib
 *
 * @author Tristan Maindron
 * 
 */

Rhy.os = {
    isWin: function(){
		return (navigator.userAgent.toLowerCase().indexOf("windows") > -1);
	},

    isMac: function(){
		return (navigator.userAgent.toLowerCase().indexOf("mac") > -1);
	},
    
    isLinux: function(){
        return (navigator.appVersion.indexOf("Linux") != -1);
    },
    
    isUnix: function(){
        return (navigator.appVersion.indexOf("X11") != -1);
    }
};

